package jmu.edu.yjc.domain.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 评论表(Comment)表实体类
 *
 * @author makejava
 * @since 2023-04-14 00:53:01
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_comment")
public class Comment {
    //主键ID
    private Long id;
    //评论的文章ID
    private Long commentArticleId;
    //是否是根评论默认不是0
    private String isRoot;
    //评论的根ID
    private Long rootCommentId;
    //评论的用户Id
    private Long toCommentUserId;
    //评论的内容
    private String content;
    //评论的子评论数量
    private Integer childrenCount;
    //评论用户ID
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    //评论的时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
//    //删除标志
//    private String delFlag;


    }

